package cn.chl.result;

/**
 * AjaxResult工具类
 * @author King
 *
 */
public class JSONResult {
	
	private Boolean success = true;
	private String msg = "操作成功";
	private Object data;
	
	public JSONResult(){
		
	}
	
	public JSONResult(Boolean success, String msg){
		this.success = success;
		this.msg = msg;
	}

	public JSONResult(Boolean success, String msg, Object data) {
		this.success = success;
		this.msg = msg;
		this.data = data;
	}

	public JSONResult(Object data){
		this.data = data;
	}
	
	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
